#include <cstdlib>
#include <iostream>
#include <conio.h>
#include <windows.h>
using namespace std;
#include "classmenu.h"
#include "Aqua.h"
#include "Bolt.h"
#include "Clash.h"
#include "Kurcaci.h"
#include "Lahan.h"
#include "boolean.h"
#include "classinventory.h"
#include "player.h"
#include "tanaman.h"
#include "Times.h"
#include "story.h"

Player P("");
Lahan L;
Times T;
inventory I;
Aqua A;
Bolt B;
Clash C;
Story S;
Menu M;

int main(int argc, char** argv) {
    L.PrintLahanKosong();
    L.PrintLahan();
    M.gotoxy(0,4);
    cout << "Cek set Tanaman dan set Status "<< endl;
    L.setTanaman(2,2,9);
    L.setStatus(2,2,3);
    L.PrintLahan();
    cout <<"Status Lahan (2,2) = "<< L.getStatus(2,2) << endl;
    cout <<"Kode Tanaman (2,2) = "<< L.getTanaman(2,2).GetKodeTanaman() << endl;
    getch();
    M.gotoxy(0,4);
    cout << "Cek delete Tanaman dan set Status "<< endl;
    L.deleteTanaman(2,2);
    L.PrintLahan();
    cout <<"Status Lahan (2,2) = "<< L.getStatus(2,2) << endl;
    return 0;
}

